#ifndef FILEREADBEHAVIORMP3_H
#define FILEREADBEHAVIORMP3_H

#include "IFileReadBehavior.h"
#include "MP3Parser.h"
#include <QObject>

// Subclass of the general FileReadBehavior Interface
class FileReadBehaviorMP3 : public IFileReadBehavior
{
	Q_OBJECT
	
public:
    FileReadBehaviorMP3();
	~FileReadBehaviorMP3 ();
    
	int calculateWaveform ( SoundSample* parentSample, int width );
	int gatherMetaInformation( SoundSample* parentSample );
	MP3Parser* getParser() const;

signals:
	void percentFinished(int);

public slots:
	void forwardSignalToProgBar(int);
	
private:
	MP3Parser* parser;
};


#endif // WAVFILEREADBEHAVIOR_H
